import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: () => import('@/components/header'),
      redirect:'/shouye',
      children: [
        {
          path:'/shouye',
          component: () => import('@/components/shouye')
        },
        {
          path:'/login',
          component: () => import('@/components/login')
        },
        // {
        //   path:'/help',
        //   component: () => import('@/components/help')
        // },
        {
          path:'/strategy_research',
          component: () => import('@/components/strategy_research')
        },
        {
          path:'/strategy_Campaign',
          component: () => import('@/components/strategy_research/strategyshow')
        },
        {
          path:'/mock_trading',
          component: () => import('@/components/mock_trading')
        },
        {
          path:'/mock_trading_detail',
          component: () => import('@/components/mock_trading/detail'),
          redirect:'/gaishu',
          children:[
            {
              path:'/gaishu',
              component: () => import('@/components/mock_trading/detailcontent/gaishu')
            },
            {
              path:'/rizhi',
              component: () => import('@/components/mock_trading/detailcontent/rizhi')
            },
            {
              path:'/daima',
              component: () => import('@/components/mock_trading/detailcontent/daima')
            }
          ]
        },
        // {
        //   path:'/investment',
        //   component: () => import('@/components/investment')
        // },
        {
          path:'/strategy_create',
          component: () => import('@/components/strategy_research/create')
        },
        {
          path:'/company',
          component: () => import('@/components/company')
        },
        {
          path:'/company_detail',
          component: () => import('@/components/company/detail')
        },
        {
          path:'/company_add',
          component: () => import('@/components/company/add')
        },
        {
          path:'/company_edit',
          component: () => import('@/components/company/edit')
        },
        {
          path:'/backtest',
          component: () => import('@/components/backtest')
        },
        {
          path:'/backtest_detail',
          component: () => import('@/components/backtest/detail')
        },
        {
          path:'/community',
          component: () => import('@/components/community')
        },
        {
          path:'/community_create',
          component: () => import('@/components/community/create')
        },
        {
          path:'/community_detail',
          component: () => import('@/components/community/detail')
        },
        {
          path:'/data',
          component: () => import('@/components/data')
        },
        {
          path:'/personal',
          component: () => import('@/components/personal')
        },
        {
          path:'/help',
          component: () => import('@/components/help')
        },
      ]
    }
  ]
})
